VoiceRecorderConfig

data class VoiceRecorderConfig @JvmOverloads constructor(    val audioSource: Int = AudioSource.VOICE_RECOGNITION,     val audioChannels: Int = 1,     val samplingRate: Int = 11025,     val bitRate: Int = 12000)

Describes a configuration of voice recorder.

Since

3.9.2

Constructors

Link copied to clipboard
fun VoiceRecorderConfig(    audioSource: Int = AudioSource.VOICE_RECOGNITION,     audioChannels: Int = 1,     samplingRate: Int = 11025,     bitRate: Int = 12000)

Properties

Link copied to clipboard
val audioChannels: Int = 1

Returns the number of audio channels to be used for recording. The default value is 1. the number of audio channels. Usually it is either 1 (mono) or 2 (stereo).

Link copied to clipboard
val audioSource: Int

Returns the audio source to be used for recording. The default value is AudioSource.VOICE_RECOGNITION.

Link copied to clipboard
val bitRate: Int = 12000

Returns the bit rate to be used for recording. The default value is 12000.

Link copied to clipboard
val samplingRate: Int = 11025

Returns the sampling rate to be used for recording. The default value is 11025.